home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2007 December / PCWKCD1207B.iso / Blogowanie poza sfera / Flock 0.9.1.3 stable / flock-0.9.1.3.en-US.win32.exe / flock / chrome / browser.jar / content / browser / preferences / main.xul < prev    next >
Extensible Markup Language  |  2006-09-22  |  7KB  |  167 lines

  1. <?xml version="1.0"?>
  2.  
  3.  
  4. <!DOCTYPE overlay [
  5.   <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
  6.   <!ENTITY % mainDTD SYSTEM "chrome://browser/locale/preferences/main.dtd">
  7.   %brandDTD;
  8.   %mainDTD;
  9. ]>
  10.  
  11. <overlay id="MainPaneOverlay"
  12.          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  13.            
  14.   <prefpane id="paneMain" onpaneload="gMainPane.init();">
  15.  
  16.     <script type="application/x-javascript" src="chrome://browser/content/preferences/main.js"/>
  17.  
  18.     <preferences id="mainPreferences">
  19.       <!-- XXX Button preferences -->
  20.  
  21.       <!-- Startup -->
  22.       <preference id="browser.startup.page"
  23.                   name="browser.startup.page"
  24.                   type="int"/>
  25.       <preference id="browser.startup.homepage"
  26.                   name="browser.startup.homepage"
  27.                   type="wstring"/>
  28.  
  29.       <preference id="pref.browser.homepage.disable_button.current_page"
  30.                   name="pref.browser.homepage.disable_button.current_page"
  31.                   type="bool"/>
  32.       <preference id="pref.browser.homepage.disable_button.bookmark_page"
  33.                   name="pref.browser.homepage.disable_button.bookmark_page"
  34.                   type="bool"/>
  35.  
  36.       <!-- Downloads -->
  37.       <preference id="browser.download.manager.showWhenStarting"
  38.                   name="browser.download.manager.showWhenStarting"
  39.                   type="bool"
  40.                   onchange="gMainPane.showDownloadsWhenStartingPrefChanged();"/>
  41.       <preference id="browser.download.manager.closeWhenDone"
  42.                   name="browser.download.manager.closeWhenDone"
  43.                   type="bool"/>
  44.       <preference id="browser.download.useDownloadDir"
  45.                   name="browser.download.useDownloadDir"
  46.                   type="bool"/>
  47.       <preference id="browser.download.dir"
  48.                   name="browser.download.dir"
  49.                   type="file"
  50.                   onchange="gMainPane.readDownloadDirPref();"/>
  51.       <preference id="browser.download.downloadDir"       name="browser.download.downloadDir"       type="file"/>
  52.       <preference id="browser.download.folderList"        name="browser.download.folderList"        type="int"/>
  53.  
  54.       <!-- SYSTEM DEFAULTS -->
  55.       <preference id="browser.shell.checkDefaultBrowser"
  56.                   name="browser.shell.checkDefaultBrowser"
  57.                   type="bool"/>
  58.  
  59.       <preference id="pref.general.disable_button.default_browser"
  60.                   name="pref.general.disable_button.default_browser"
  61.                   type="bool"/>
  62.  
  63.     </preferences>
  64.     
  65.     <stringbundle id="bundlePreferences" src="chrome://browser/locale/preferences/preferences.properties"/>
  66.     <stringbundle id="bundleShell" src="chrome://browser/locale/shellservice.properties"/>
  67.     <stringbundle id="bundleBrand" src="chrome://branding/locale/brand.properties"/>
  68.  
  69.     <!-- Startup -->
  70.     <groupbox id="startupGroup">
  71.       <caption label="&startup.label;"/>
  72.  
  73.       <hbox align="center">
  74.         <label value="&startupPage.label;" accesskey="&startupPage.accesskey;"
  75.                control="browserStartupPage"/>
  76.         <menulist id="browserStartupPage" preference="browser.startup.page">
  77.           <menupopup>
  78.             <menuitem label="&startupHomePage.label;"     value="1"/>
  79.             <menuitem label="&startupBlankPage.label;"    value="0"/>
  80.             <menuitem label="&startupLastSession.label;"  value="3"/>
  81.           </menupopup>
  82.         </menulist>
  83.       </hbox>
  84.       <separator class="thin"/>
  85.       <hbox align="center">
  86.         <label value="&location.label;" accesskey="&location.accesskey;" control="browserHomePage"/>
  87.         <textbox id="browserHomePage" class="padded" flex="1"
  88.                  type="autocomplete" autocompletesearch="history"
  89.                  preference="browser.startup.homepage"/>
  90.       </hbox>
  91.       <hbox align="center" pack="end">
  92.         <button label="" accesskey="&useCurrentPage.accesskey;"
  93.                 label1="&useCurrentPage.label;"
  94.                 label2="&useMultiple.label;"
  95.                 oncommand="gMainPane.setHomePageToCurrent();"
  96.                 id="useCurrent"
  97.                 preference="pref.browser.homepage.disable_button.current_page"/>
  98.         <button label="&useBookmark.label;" accesskey="&useBookmark.accesskey;"
  99.                 oncommand="gMainPane.setHomePageToBookmark();"
  100.                 id="useBookmark"
  101.                 preference="pref.browser.homepage.disable_button.bookmark_page"/>
  102.         <button label="&restoreDefault.label;" accesskey="&restoreDefault.accesskey;"
  103.                 oncommand="gMainPane.restoreDefaultHomePage();"
  104.                 id="restoreDefaultHomePage"
  105.                 preference="pref.browser.homepage.disable_button.restore_default"/>
  106.       </hbox>
  107.     </groupbox>
  108.  
  109.     <!-- Downloads -->
  110.     <groupbox id="downloadsGroup">
  111.       <caption label="&downloads.label;"/>
  112.  
  113.       <checkbox id="showWhenDownloading" label="&showWhenDownloading.label;"
  114.                 accesskey="&showWhenDownloading.accesskey;"
  115.                 preference="browser.download.manager.showWhenStarting"
  116.                 onsyncfrompreference="return gMainPane.readShowDownloadsWhenStarting();"/>
  117.       <checkbox id="closeWhenDone" label="&closeWhenDone.label;"
  118.                 accesskey="&closeWhenDone.accesskey;" class="indent"
  119.                 preference="browser.download.manager.closeWhenDone"/>
  120.  
  121.       <separator/>
  122.  
  123.       <radiogroup id="saveWhere"
  124.                   preference="browser.download.useDownloadDir"
  125.                   onsyncfrompreference="return gMainPane.readUseDownloadDir();">
  126.         <hbox id="saveToRow">
  127.           <radio id="saveTo" value="true"
  128.                  label="&saveTo.label;"
  129.                  accesskey="&saveTo.accesskey;"
  130.                  xmlns:aaa="http://www.w3.org/2005/07/aaa"
  131.                  aaa:labelledby="saveTo downloadFolder"/>
  132.           <filefield id="downloadFolder" flex="1"
  133.                      preference="browser.download.folderList"
  134.                      preference-editable="true"
  135.                      onsyncfrompreference="return gMainPane.readDownloadDirPref();"
  136.                      onsynctopreference="return gMainPane.writeFolderList()"/>
  137.           <button id="chooseFolder" oncommand="gMainPane.chooseFolder();"
  138.                   accesskey="&chooseFolderWin.accesskey;"
  139.                   label="&chooseFolderWin.label;"
  140.                   preference="browser.download.folderList"
  141.                   onsynctopreference="return gMainPane.writeFolderList();"/>
  142.         </hbox>
  143.         <radio id="alwaysAsk" value="false"
  144.                label="&alwaysAsk.label;"
  145.                accesskey="&alwaysAsk.accesskey;"/>
  146.       </radiogroup>
  147.     </groupbox>
  148.  
  149.     <!-- System Defaults -->
  150.     <groupbox id="systemDefaultsGroup" orient="horizontal">
  151.       <caption label="&systemDefaults.label;"/>
  152.  
  153.       <hbox id="checkDefaultBox" align="center" flex="1">      
  154.         <checkbox id="alwaysCheckDefault" preference="browser.shell.checkDefaultBrowser"
  155.                   label="&alwaysCheckDefault.label;" accesskey="&alwaysCheckDefault.accesskey;"
  156.                   flex="1" style="height: &alwaysCheckDefault.height;"/>
  157.         <button id="checkDefaultButton"
  158.                 label="&checkNow.label;" accesskey="&checkNow.accesskey;"
  159.                 oncommand="gMainPane.checkNow()"
  160.                 preference="pref.general.disable_button.default_browser"/>
  161.       </hbox>
  162.     </groupbox>
  163.  
  164.   </prefpane>
  165.  
  166. </overlay>
  167.